package com.RLFZ.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.RLFZ.entity.ChinaTotal;
import com.RLFZ.mapper.ChinaTotalMapper;
import com.RLFZ.service.ChinaTotalService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * 服务接口实现
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description 
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class ChinaTotalServiceImpl extends ServiceImpl<ChinaTotalMapper, ChinaTotal> implements ChinaTotalService {

    @Resource
    private ChinaTotalMapper chinaTotalMapper;

    @Override
    public Integer maxID() {
        return chinaTotalMapper.maxID();
    }

    @Override
    public void insert(Integer confirm, Integer input, Integer severe, Integer heal, Integer dead, Integer suspect, Date updateTime) {
        chinaTotalMapper.insert(confirm,input,severe,heal,dead,suspect,updateTime);
    }

    @Override
    public void insertt(Integer confirm, Integer input, Integer severe, Integer heal, Integer dead, Integer suspect, String updateTime) {
        chinaTotalMapper.insertt(confirm,input,severe,heal,dead,suspect,updateTime);
    }

}